package yonghe
{
	import flash.geom.Rectangle;
	public class Assets
	{
		//[Embed(source="btn/guanbi1.png")]public static const close_png:Class;
		public static const close_png_url:String = "btn/guanbi1.png";
		//[Embed(source="btn/back.png")]public static const backhome_png:Class;
		public static const backhome_png_url:String = "btn/back.png";
		//[Embed(source="btn/fanhui1.png")]public static const fanhui_png:Class;
		public static const fanhui_png_url:String = "btn/fanhui1.png";
		//[Embed(source="btn/return.png")]public static const back_png:Class;
		public static const back_png_url:String = "btn/return.png";
		//[Embed(source="btn/print.png")]public static const print_png:Class;
		public static const print_png_url:String = "btn/print.png";
		//[Embed(source="btn/rephoto.png")]public static const rephoto_png:Class;
		public static const rephoto_png_url:String = "btn/rephoto.png";
		//[Embed(source="btn/resign.png")]public static const resign_png:Class;
		public static const resign_png_url:String = "btn/resign.png";
		//[Embed(source="btn/erweima1.png")]public static const code_png:Class;
		public static const code_png_url:String = "btn/erweima1.png";
		//[Embed(source="btn/takephoto.png")]public static const takephoto_png:Class;
		public static const takephoto_png_url:String = "btn/takephoto.png";
		//[Embed(source="btn/resign.png")]public static const sign_png:Class;
		public static const sign_png_url:String = "btn/resign.png";
		//[Embed(source="btn/upload.png")]public static const upload_png:Class;
		public static const upload_png_url:String = "btn/upload.png";
		//[Embed(source="btn/wancheng1.png")]public static const wancheng_png:Class;
		public static const wancheng_png_url:String = "btn/mobanqueren.png";

		[Embed(source="btn/mubanditu.png")]public static const dayinbg_png:Class;
		//public static const dayinbg_png_url:String = "btn/mubanditu.png";
		[Embed(source="btn/erweimamingban.png")]public static const erweimamingban_png:Class;
		//public static const erweimamingban_png_url:String = "btn/erweimamingban.png";

		[Embed(source="btn/xuanzemoban2.jpg")]public static const dayinbg2_png:Class;
		//public static const dayinbg2_png_url:String = "btn/xuanzemoban2.jpg";

		//[Embed(source="btn/bichu1.png")]public static const bichu_png:Class;
		public static const bichu_png_url:String = "btn/bichu1.png";
		//[Embed(source="btn/xi1.png")]public static const bichu1_png:Class;
		public static const bichu1_png_url:String = "btn/xi1.png";
		//[Embed(source="btn/zhong1.png")]public static const bichu2_png:Class;
		public static const bichu2_png_url:String = "btn/zhong1.png";
		//[Embed(source="btn/cu1.png")]public static const bichu3_png:Class;
		public static const bichu3_png_url:String = "btn/cu1.png";

		[Embed(source="btn/signBoad.png")]public static const signBoad_png:Class;
		//public static const signBoad_png_url:String = "btn/signBoad.png";
		//[Embed(source="btn/sayBoad.png")]public static const sayBoard_png:Class;
		public static const sayBoard_png_url:String = "btn/sayBoad.png";


		//[Embed(source="btn/zit.png")]public static const zit_png:Class;
		public static const zit_png_url:String = "btn/zit.png";
		//[Embed(source="btn/zit2.png")]public static const zit2_png:Class;
		public static const zit2_png_url:String = "btn/zit2.png";
		//[Embed(source="btn/xiugg1.png")]public static const xiugg1_png:Class;
		public static const xiugg1_png_url:String = "btn/xiugg1.png";
		//[Embed(source="btn/xiugg2.png")]public static const xiugg2_png:Class;
		public static const xiugg2_png_url:String = "btn/xiugg2.png";

		public static function get bgUrl():String//main window bg
		{
			if(test.isVert)
				return "yonghe/bgs.jpg";
			return "yonghe/bg.jpg";

		}

		public static function get bg2Url():String//window 2 bg
		{
			return "yonghe/bg2.jpg";
		}

		public static function newBtn(s:String,pos:Array=null):TxtBtn
		{
			if(pos==null)
				pos = [0,0,140,80];
			var btn:TxtBtn = new TxtBtn(s,null);
			btn.setformat(new Rectangle(pos[0],pos[1],pos[2],pos[3]),0xd20e0b,0xd20e0b,0xffffff,0xffffff,0xee9900);
			return btn;
		}

	}
}
